Skip to content

Add symbol and type highlighting to F# diagnostics - #20097

Open
auduchinok wants to merge 7 commits into
dotnet:mainfrom
auduchinok:richDiagnostics
Open

Add symbol and type highlighting to F# diagnostics#20097
auduchinok wants to merge 7 commits into
dotnet:mainfrom
auduchinok:richDiagnostics

Conversation

@auduchinok

Copy link
Copy Markdown
Member

Implements highlighting for symbols and types in diagnostic messages to be used by IDEs and tools like F# Interactive.

To make it possible, this PR introduces RichText type which wraps TaggedText[] uses and making the code simpler to work with in existing FCS APIs like tooltips.

The FSComp helpers generation is changed in a way that the same format works without changes, and only an additional RichText flag is needed in the fsproj.

@auduchinok
auduchinok requested a review from a team as a code owner July 29, 2026 16:39
@auduchinok auduchinok changed the title Diagnostics: classify errors using RichText Add symbol and type highlighting to F# diagnostics Jul 29, 2026
@github-actions github-actions Bot added ⚠️ Affects-Bootstrap Tooling check: PR touches compiler bootstrap chain ⚠️ Affects-Build-Infra Tooling check: PR touches build infrastructure labels Jul 29, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added the ⚠️ Affects-Compiler-Output Tooling check: PR touches IL emission or codegen label Jul 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Tooling Safety Check — Affects-Bootstrap, Affects-Build-Infra, Affects-Compiler-Output
Affects-Bootstrap: modifies proto.proj, lex.fsl, pars.fsy
Affects-Build-Infra: modifies FSharpBuild.Directory.Build.targets, FSharpEmbedResourceText.fs
Affects-Compiler-Output: modifies IlxGen.fs, ilwrite.fs, ilreflect.fs

Generated by PR Tooling Safety Check · opus46 3.8M ·

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ Affects-Bootstrap Tooling check: PR touches compiler bootstrap chain ⚠️ Affects-Build-Infra Tooling check: PR touches build infrastructure ⚠️ Affects-Compiler-Output Tooling check: PR touches IL emission or codegen

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant